@import "~styles/util.less";

.main {
    position: absolute;
    width: 750px;
    height: 100%;
    background-color: #fff;
    padding-bottom: 108px;
    box-sizing: border-box;
    overflow-y: scroll;

    .clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}

    .banner {
        width: 100%;
        height: 336px;
        background-color: rgb(201, 201, 201);
        position: relative;
        overflow: hidden;

        :global {
            .swiper-slide {
                text-align: center;
                color: #fff;
                font-size: 30px;
                line-height: 390px;
                background-size: cover;
            }

            .swiper-pagination-bullets {
                bottom: 20px;

                .swiper-pagination-bullet {
                    width: 8px;
                    height: 8px;
                    background: rgba(255, 255, 255, 1);
                    border-radius: 5px;
                    transition: width .3s ease 0s;
                    opacity: .5;
                }

                .swiper-pagination-bullet-active {
                    width: 17px;
                    opacity: 1;
                }
            }
        }
    }

    .seckill {
        background-color: #fff;
        padding-top: 18px;
        padding-bottom: 18px;
        height: 270px;
        box-sizing: border-box;

        .seckillTitle {
            width: 100%;
            padding: 0 24px;
            display: flex;
            justify-content: space-between;
            box-sizing: border-box;
            align-items: center;

            .seckillTitleLeft {
                .waitTimes {
                    color: rgba(248, 101, 53, 1);

                    .timesTitle {
                        font-size: 34px;
                        font-family: PingFangSC;
                        font-weight: 600;
                        color: rgba(36, 35, 47, 1);
                        line-height: 48px;
                        margin-right: 20px;
                    }
                }

                .times {
                    color: rgba(248, 101, 53, 1);

                    span {
                        vertical-align: middle;
                    }

                    .timesTitle {
                        font-size: 34px;
                        font-family: PingFangSC;
                        font-weight: 600;
                        color: rgba(36, 35, 47, 1);
                        line-height: 48px;
                        margin-right: 20px;
                    }

                    .timesValue {
                        width: 34px;
                        height: 30px;
                        background: rgba(248, 101, 53, 1);
                        border-radius: 2px;
                        display: inline-block;
                        font-size: 25px;
                        font-family: PingFangSC;
                        font-weight: 400;
                        color: rgba(255, 255, 255, 1);
                        text-align: center;
                    }
                }
            }

            .seckillTitleRight {
                font-size: 24px;
                font-family: PingFangSC;
                font-weight: 400;
                color: rgba(248, 101, 53, 1);
                line-height: 33px;

                i {
                    border-left: 12px solid #BEBDBE;
                    display: inline-block;
                    border-top: 8px solid transparent;
                    border-bottom: 8px solid transparent;
                    margin-left: 5px;
                }
            }
        }

        .seckillGoods {
            margin-top: 17px;
            display: flex;
            overflow: hidden;

            :global {
                .swiper-wrapper {
                    align-items: center;
                }
            }

            .seckillGoodsItem {
                width: 370px;
                height: 169px;
                margin-left: 13px;
                display: flex;

                &:first-child {
                    margin-left: 0;
                }

                .seckillGoodsItemImg {
                    width: 169px;
                    height: 169px;
                    background-color: #F5F5F5;
                    position: relative;

                    .seckillGoodsItemImgContainer {
                        width: 149px;
                        height: 149px;
                        top: 10px;
                        left: 10px;
                        background-size: contain;
                        position: absolute;
                    }

                    .seckillGoodsItemSoldout {
                        position: absolute;
                        left: 0;
                        top: 0;
                        width: 100%;
                        height: 100%;
                        background-color: rgba(255, 255, 255, 0.5);
                        padding: 45px;
                        padding-top: 43px;
                        box-sizing: border-box;

                        div {
                            width: 80px;
                            height: 80px;
                            background-color: rgba(0, 0, 0, 0.7);
                            border-radius: 100px;
                            line-height: 80px;
                            text-align: center;
                            color: #fff;
                            font-size: 22px;
                        }
                    }

                    .seckillGoodsItemWillSoldout {
                        width: 170px;
                        height: 37px;
                        background: linear-gradient(135deg, rgba(228, 127, 131, 1) 0%, rgba(233, 76, 65, 1) 100%);
                        border-radius: 0px 0px 10px 10px;
                        font-size: 20px;
                        font-family: PingFangSC;
                        font-weight: 400;
                        color: rgba(255, 255, 255, 1);
                        bottom: 0;
                        left: 0;
                        position: absolute;
                        text-align: center;
                        line-height: 37px;
                    }

                    .seckillGoodsItemNews {
                        position: absolute;
                        width: 100px;
                        height: 32px;
                        background: linear-gradient(270deg, rgba(66, 109, 255, 1) 0%, rgba(24, 55, 255, 1) 100%);
                        border-radius: 2px;
                        font-size: 22px;
                        font-weight: 400;
                        color: rgba(255, 255, 255, 1);
                        text-align: center;
                        line-height: 32px;
                        left: -10px;
                        top: 10px;
                    }
                }

                .seckillGoodsItemInfo {
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                    padding: 12px 0;
                    margin-left: 15px;

                    .seckillGoodsItemName {
                        width: 186px;
                        height: 82px;
                        font-size: 29px;
                        font-family: PingFangSC;
                        font-weight: 600;
                        color: rgba(34, 33, 45, 1);
                        line-height: 41px;
                        .ellipsis(2);
                    }

                    .seckillGoodsItemPrice {
                        font-size: 28px;
                        font-family: PingFangSC;
                        font-weight: 600;
                        color: rgba(255, 83, 27, 1);
                        line-height: 40px;

                        span {
                            font-size: 22px;
                            font-family: PingFangSC;
                            font-weight: 400;
                            color: rgba(168, 167, 177, 1);
                            line-height: 30px;
                            margin-left: 10px;
                            text-decoration: line-through;
                        }
                    }
                }
            }

            .seckillGoodsItemMore {
                background: #eeeff4;
                border-radius: 4px;
                width: 116px;
                height: 150px;
                font-size: 27px;
                font-family: PingFangSC;
                font-weight: 400;
                color: #9b9b9b;
                line-height: 27px;
                padding: 50px 22px;
                box-sizing: border-box;
                position: relative;

                img {
                    position: absolute;
                    transform-origin: center;
                    transform: translateY(-50%) rotate(-90deg);
                    right: 10px;
                    top: 50%;
                }
            }
        }

        .seckillGoodsSplitLine {
            height: 1px;
            background-color: #DDDDDD;
            margin-top: 45px;
        }

        .seckillGoodsMore {
            padding: 16px 0;
            text-align: center;

            span {
                font-size: 24px;
                font-family: PingFangSC-Regular;
                font-weight: 400;
                color: #666;

                img {
                    margin-left: 10px;
                    width: 30px;
                    height: 30px;
                }

                &>* {
                    vertical-align: sub;
                }
            }
        }
    }
    .logo_bottom{
        background: url(../images/icon_bottom.png) no-repeat center;
        margin: 123px auto 0;
        width: 278px;
        height: 37px;
    }
    .hotActive{
        width: 174px;
        height: 55px;
        margin: 48px auto 0;
        background: url(../images/hot_activity.png) no-repeat center;
    }
    .daySignIn{
        position: fixed;
        width: 183px;
        height: 171px;
        background: url(../images/daySignIn.png) no-repeat center;
        right: 0;
        top: 70%;
        transition: all 1.5s ease;
        transform: translateX(0);
        &.showDaySignIn{
            transform: translateX(100px);
            opacity: .6;
        }
    }
    .module {
        padding: 30px;
        background-color: #fff;

        >div {
            float: left;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            flex-direction: column;
            border-radius: 6px;
            font-size: 30px;
            font-weight: 600;
            color: rgba(255, 255, 255, 1);
            line-height: 42px;
        }

        .module1 {
            width: 338px;
            height: 374px;
        }

        .module2,
        .module3 {
            width: 338px;
            height: 180px;
            margin-left: 14px;
        }

        .module3 {
            margin-top: 14px;
        }

        .module4,
        .module5,
        .module6 {
            width: 220px;
            height: 146px;
            margin-top: 16px;
            margin-right: 15px;
        }

        .module6 {
            margin-right: 0;
        }
    }
}

.searchBar {
    padding: 20px 30px;
    position: absolute;
    top: 0;
    z-index: 10;
    transition: background-color .3s ease 0s;
    left: 50%;
    transform: translateX(-50%);

    &.searchBarStateTwo {
        background-color: #fff;
    }

    .searchBarWrapper {
        width: 690px;
        height: 60px;
        background: #F5F5F5;
        border-radius: 30px;
        border: 1px solid rgba(151, 151, 151, 1);
        font-size: 24px;
        font-family: PingFangSC-Regular;
        font-weight: 400;
        color: #666;
        line-height: 60px;
        text-align: center;
        opacity: 0.9;
        box-sizing: border-box;

        img {
            margin-right: 10px;
            width: 24px;
            height: 24px;
        }

        &>* {
            vertical-align: sub;
        }
    }
}